package org.lookahead.parent.common.config;

import feign.Logger;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;

@Slf4j
@Configuration
public class FeignConfig {

    @Primary
    @Bean
    public Logger.Level feignLoggerLevel() {
        log.info("feign logger level: {}", Logger.Level.FULL);
        return Logger.Level.FULL;
    }
}
